<!DOCTYPE HTML>
<html>
<head>
{include file="public/top"}
<title>角色管理</title>
</head>
<body>
<form action="{:url('Merchant/weipeizhi')}" method="post" class="form form-horizontal"  >
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 商户资料管理 <span class="c-gray en">&gt;</span> 商户资料列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">

	<div class="cl pd-5 bg-1 bk-gray"> <span class="l"> <a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> 
	<!-- <a class="btn btn-primary radius" href="javascript:;" onclick="admin_role_add('添加商户资料','{:url('merchant/add')}','800')"><i class="Hui-iconfont">&#xe600;</i> 添加商户资料</a> -->
	<a class="btn btn-primary radius" href="{:url('merchant/rwm_add')}" ><i class="Hui-iconfont">&#xe600;</i>生成二维码</a>

	<input type="submit" class="btn btn-primary radius"  value="批量下载二维码">




</span> <span class="r">共有数据：<strong>54</strong> 条</span> </div>
	<table class="table table-border table-bordered table-hover table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="11">二维码生成</th>
			</tr>
			<tr class="text-c">
				<th width="25"><input type="checkbox" value="" name=""></th>
		
				<th >二维码编号</th>
				<th >创建时间</th>
				<th >销售人员</th>
				<th>付款码</th>
				<!-- <th>操作</th> -->
				 
			</tr>
		</thead>
		<tbody>
         {volist name="rwm" id="vo"}
			<tr class="text-c">
				<td><input type="checkbox" value="{$vo['id']}" name="fiel[]"></td>
			
				<td>{$vo['id']}</td>
				<td>{$vo['register_time']}</td>
				<td>{$vo['salesname']}</td>
				<td>

					<img src="http://pan.baidu.com/share/qrcode?w=350&h=350&url=http://hb.nmejiefu.com/hb.php?mid={$vo['id']}" style="width:30px;">

				</td>
				<!-- <td><a href="">配置二维码</a></td> -->
			</tr>
        {/volist}
		</tbody>
	</table>
</div>
{include file="public/footer"}
</form>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript">
/*管理员-角色-添加*/
function admin_role_add(title,url,w,h){
	layer_show(title,url,w,h);
}
/*管理员-角色-编辑*/
function admin_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
}
/*管理员-角色-删除*/
function admin_role_del(obj,id){
	layer.confirm('角色删除须谨慎，确认要删除吗？',function(index){
		$.ajax({
			type: 'POST',
			url: '',
			dataType: 'json',
			success: function(data){
				$(obj).parents("tr").remove();
				layer.msg('已删除!',{icon:1,time:1000});
			},
			error:function(data) {
				console.log(data.msg);
			},
		});		
	});
}
</script>
</body>
</html>